
//----------------------Vikash Bhardwaj 17 September 2013-------------------

//var currSectionId = 'sect-da901385-4f78-4b6a-9f03-be83efe2189e'
//var currAypId	  =	'acad-7ab69876-cc2e-4399-a066-061823192c94'

var currSectionId = $("#sectionId").val()//'sect-da901385-4f78-4b6a-9f03-be83efe2189e'
var currAypId	  =	$("#aypId").val()//'acad-7ab69876-cc2e-4399-a066-061823192c94'

var AYP_GET_CURR_PLANS_BY_SECTION            =   'getCurrPlansBYSection';
var AYP_GET_SCHOOL_TEACHERS					 =	 'getSchoolTeachers';
var AYP_GET_SECPLAN_TERMS_BY_SECID		     =   'getSecPlanTermsBySecId';
var AYP_GET_SEC_CURR_PLAN_CHAPTERS			 =	 'getSecCurrPlanChapters';
var AYP_GET_CHAPTER_CURR_PLAN_JSON			 =   'getChapterCurrPlanJson';
var AYP_SAVE_SECTION_CURR_PLAN  			 =	 'saveSectionCurrPlan';
var AYP_GET_SUBJECT_TEACHER_BY_SEC_GRADE	 =	 'getSubjectTeachersBySecGrade';


var currTermId;
var currCeGradeId;
var currSubjectId;
var currChangeTeacherId;

var  baseurl=$('#baseUrl').val().split("DUMMY")[0];

var chaptersurl = $('#chaptersUrl').val().split("DUMMY")[0];


//var baseurl 	=	'http://p1392:8080/group/hinpubsc-abd/academic-year?p_p_id=AYPManagement_WAR_ceportaltestedge&p_p_lifecycle=0&p_p_state=exclusive&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_AYPManagement_WAR_ceportaltestedge_Operation=' 

var mainUrl 	=  	baseurl+AYP_GET_CURR_PLANS_BY_SECTION+'&aypId='+currAypId+'&sectionId='+currSectionId;//jQuery("#baseUrl").val().split("DUMMY")[0]

var teacherUrl 	= 	baseurl+AYP_GET_SCHOOL_TEACHERS

var planUrl		=	baseurl+AYP_GET_SECPLAN_TERMS_BY_SECID+'&sectionId='+currSectionId;

var planDataUrl =	chaptersurl+AYP_GET_SEC_CURR_PLAN_CHAPTERS;

var changeTeacherUrl =	baseurl+AYP_SAVE_SECTION_CURR_PLAN+'&aypId='+currAypId;


var filteredTeacherUrl 	 = baseurl+AYP_GET_SUBJECT_TEACHER_BY_SEC_GRADE +'&sectionId='+currSectionId;

//------------------------------------------------------------



//getSubjectTeachersBySecGrade 

//parameters to pass :

//sectionId 
//ceGradeId
//subjectId